<?php
/* @var $this BeritaController */
/* @var $model Berita */


?>
    <div class="form">

        <?php $form=$this->beginWidget('CActiveForm', array(
        'id'=>'cni-galeri-form',
        'enableAjaxValidation'=>false,
    )); ?>

        <?php echo $form->errorSummary($model); ?>

        <div class="row">
            <?php echo $form->labelEx($model,'parent_id'); ?>
            <?php echo $form->dropDownList($model, 'parent_id', $list_parent, array('empty' => '(Pilih Kategori)',
            'style' => 'width:200px')); ?>
            <?php echo $form->error($model,'parent_id'); ?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model,'nama'); ?>
            <?php echo $form->textField($model,'nama',array('size'=>60,'maxlength'=>250)); ?>
            <?php echo $form->error($model,'nama'); ?>
        </div>

        <div class="row buttons">
            <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
        </div>

        <?php $this->endWidget(); ?>

    </div><!-- form -->